package week01.bytecode;

public class Hello {
    private void calc(int i, int j) {
        System.out.println(i * j);
        System.out.println(i + j);
        System.out.println(i - j);
        System.out.println(i / j);
    }
    public void forEach(int bound) {
        if (bound <= 0) {
            throw new IllegalArgumentException();
        }
        for (int i = 0; i < bound; i++) {
            System.out.println("输出=" + i);
        }
    }
    public static void main(String[] args) {
        Hello hello = new Hello();
        hello.calc(10, 5);
        hello.forEach(20);
    }
}
